package cn.dglydrpy.study.mybatis.consumer.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Select;

import cn.dglydrpy.study.mybatis.consumer.entity.Role;

public interface RoleMapper {


    @Select("select * from sys_role r,sys_user_role ur where r.id = ur.roleid and ur.userid = #{uid}")
    public List<Role> findRoleByUid(Integer uid);
}
